﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/MainFrameNoJS.Master" Inherits="System.Web.Mvc.ViewPage<GPMS.Model.GraduationProject>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    课题管理
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2>发布课题</h2>
<%Html.EnableClientValidation(); %>
<% using (Html.BeginForm()) { %>
    <%: Html.ValidationSummary(true) %>
    <fieldset>
        <legend>课题</legend>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.GPName) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.GPName) %>
            <%: Html.ValidationMessageFor(model => model.GPName) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.Description) %>
        </div>
        <div class="editor-field">
            <%: Html.TextAreaFor(model => model.Description) %>
            <%: Html.ValidationMessageFor(model => model.Description) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.Claim) %>
        </div>
        <div class="editor-field">
            <%: Html.TextAreaFor(model => model.Claim)%>
            <%: Html.ValidationMessageFor(model => model.Claim)%>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.Type) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.Type) %>
            <%: Html.ValidationMessageFor(model => model.Type) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.Maxman) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.Maxman) %>
            <%: Html.ValidationMessageFor(model => model.Maxman) %>
        </div>

        <p>
            <input type="submit" value="发布" />
        </p>
    </fieldset>
<% } %>
<script type="text/javascript" src="<%: Url.Content("~/Scripts/MicrosoftMvcJQueryValidation.js") %>"></script>
<script type="text/javascript">
    $(function () {
        initForm($("#dialogPanel"), $("#form0"), null, null, function () { $.unblockUI() });

    })
</script>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="Header" runat="server">
<script type="text/javascript" src="<%: Url.Content("~/Scripts/jquery.form.js") %>"></script>
<script type="text/javascript" src="<%: Url.Content("~/Scripts/jquery.validate.min.js") %>"></script>
</asp:Content>

